PICS=./pics
DIA=./diagramas

all:  main.pdf


main.pdf: main.tex 
	pdflatex -d $<
	pdflatex -d $<

%.png: $(DIA)/%.dia
	dia $< -t png

clean:
	rubber -clean
	$(RM)  main.pdf *.aux *.log *.out *.eps *.toc *.lof *.lop *~
	$(RM) $(DIA)/*.png $(DIA)/*~

